import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import Demo from './views/demo.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
      redirect: '/demo',
      children:[{
        path: '/demo',
        name: 'demo',
        component: Demo
      }]
      
    },
    // {
    //   path: '/demo',
    //     name: 'demo',
    //     component: Demo
    // }
   
  ]
})
